using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace Hack.Authorization {
	/// <summary>
	/// Role for this user.
	/// </summary>
	[DataContract(Namespace = "http://digitalfortress.com", Name = "Role")]
	public partial class Role {

		#region Fields
		private System.Guid _roleId;
		private string _roleName;
		private Application application;
		#endregion Fields

		#region Properties
		/// <summary>
		/// RoleId Property Name.
		/// </summary>
		public const string RoleIdProperty = "RoleId";
		/// <summary>
		/// Role Id.
		/// </summary>
		[DataMember(IsRequired = false, Name = RoleIdProperty, Order = 0)]
		public System.Guid RoleId {
			get {
				return this._roleId;
			}
			set {
				this._roleId = value;
			}
		}

		/// <summary>
		/// RoleName Property Name.
		/// </summary>
		public const string RoleNameProperty = "RoleName";
		/// <summary>
		/// Role name.
		/// </summary>
		[DataMember(IsRequired = false, Name = RoleNameProperty, Order = 1)]
		public string RoleName {
			get {
				return this._roleName;
			}
			set {
				this._roleName = value;
			}
		}

		/// <summary>
		/// Application Property Name.
		/// </summary>
		public const string ApplicationProperty = "RoleName";
		/// <summary>
		/// Application name.
		/// </summary>
		[DataMember(IsRequired = false, Name = ApplicationProperty, Order = 2)]
		public Application Application {
			get {
				return application;
			}
			set {
				application = value;
			}
		}

		#endregion Properties

	}
}
